<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
	var page = "uploader";
</script>
<?php
$page = "uploader";

ob_start();
session_start();
//require('structure/header.php');
//require('structure/css.php');
//require('structure/js.php');
require('languages/it.php');
require('functions.php');

//recupero del cookie se c'
//if (isset($_COOKIE["ragusainfoto"]))
	//get_session($_COOKIE["ragusainfoto"]);
?>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Uploadify</title>
<link href="./uploader/uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<style type="text/css">
        #custom-demo .uploadifyQueueItem {
  background-color: #FFFFFF;
  border: none;
  border-bottom: 1px solid #E5E5E5;
  font: 11px Verdana, Geneva, sans-serif;
  
  margin-top: 0;
  padding: 10px;
  width: 550px;
}
#custom-demo .uploadifyError {
  background-color: #FDE5DD !important;
  border: none !important;
  border-bottom: 1px solid #FBCBBC !important;
}
#custom-demo .uploadifyQueueItem .cancel {
  float: right;
}
#custom-demo .uploadifyQueue .completed {
  color: #C5C5C5;
}
#custom-demo .uploadifyProgress {
  background-color: #E5E5E5;
  margin-top: 10px;
  width: 100%;
}
#custom-demo .uploadifyProgressBar {
  background-color: #0099FF;
  height: 3px;
  width: 1px;
}
#custom-demo #custom-queue {
  border: 1px solid #E5E5E5;
  margin-bottom: 10px;
  width: 570px;
}
#preview-image{
	float:right;

}
</style>
 

<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="./uploader/uploadify/jquery-1.4.2.min.js"></script>
<script type="text/javascript" src="./uploader/uploadify/swfobject.js"></script>
<script type="text/javascript" src="./uploader/uploadify/jquery.uploadify.v2.1.4.min.js"></script>
<script type="text/javascript" src="./languages/it.js"></script>
<script type="text/javascript" src="./js/upload.js"></script>

<script type="text/javascript">

photos=new Array();
<?php 
//write_js_category_list();

?>

				$(function() {
				$('#custom_file_upload').uploadify({
  'uploader'       : './uploader/uploadify/uploadify.swf',
  'script'         : './uploader/uploadify/uploadify.php',
  'cancelImg'      : './uploader/uploadify/cancel.png',
  'multi'          : true,
  'auto'           : true,
  'fileExt'        : '*.jpg;*.png',
  'fileDesc'       : 'Image Files (.JPG, .GIF, .PNG)',
  'queueID'        : 'custom-queue',
  'removeCompleted': false,
  'onComplete'  : function(event, ID, fileObj, response, data) {
	elem=parse_photo_response(response);
	elem['IDdiv'] = ID;
	elem['modified'] = false;
	elem['rotation'] = 0;
	
	photos.push(elem);
	document.getElementById('custom_file_upload'+elem.IDdiv).innerHTML = create_photo_form(elem);
	//document.getElementById('custom_file_upload'+elem.IDdiv).style.color='black';
	  
    },
  'onSelectOnce'   : function(event,data) {
      $('#status-message').text(data.filesSelected + ' files have been added to the queue.');
    },
  'onAllComplete'  : function(event,data) {
      $('#status-message').text(data.filesUploaded + ' files uploaded, ' + data.errors + ' errors.');
      
	}
});				});






				
				</script>
</head>
<body >

<div id="custom-demo" class="demo">
      
        
        <div class="demo-box">
        <div id="status-message">Select some files to upload:</div>
<input id="custom_file_upload" type="file" name="Filedata" style="display: none; " width="120" height="30"><object type="application/x-shockwave-flash" data="/uploadify/uploadify.swf" width="120" height="30" id="custom_file_uploadUploader" style="visibility: visible; " wmode="opaque"><param name="quality" value="high"><param name="wmode" value="opaque"><param name="allowScriptAccess" value="sameDomain"><param name="flashvars" value="uploadifyID=custom_file_upload&amp;pagepath=/demos/&amp;script=/uploadify/uploadify.php&amp;folder=/uploads&amp;width=120&amp;height=30&amp;wmode=opaque&amp;method=POST&amp;queueSizeLimit=3&amp;simUploadLimit=3&amp;fileDesc=Image Files (.JPG, .GIF, .PNG)&amp;fileExt=*.jpg;*.gif;*.png&amp;multi=true&amp;auto=true&amp;fileDataName=Filedata&amp;queueID=custom-queue"></object>        </div>
<div id="custom-queue" class="uploadifyQueue"></div>
      </div>
<div id="save-buttons"></div>


</body>
</html>
